package com.shihb.chapter07designpattern.decotator

/**
 * Description:
 *
 * @author shihb
 * @date 2020/10/4 10:58
 */
class Coffer(myName:String,myPrice:Double) extends Drink {

  override def description(): Unit = {
    print(name)
  }

  override def cost(): Double ={
    println(name+"---"+price)
    price
  }

  override var name: String = myName
  override var price: Double = myPrice
}
